package com.example.blog.module.mapper;

import com.example.blog.module.entity.Article;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.blog.module.entity.VO.Archive;
import com.example.blog.module.entity.VO.ViewCountQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zjx
 * @since 2022-11-22
 */
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {
    List<Archive> personArchives(Long userId);
    Boolean updateCountAndHotness(Long articleId,String viewCount);
}
